package com.bright.dao;

import com.bright.pojo.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentDao extends JpaRepository<Comment,Long> {

    List<Comment> getByParentCommentNotNullAndBlogId(long blogid,Sort sort);

    List<Comment> getByParentCommentNullAndBlogId(long blogid,Sort sort);
}
